package cn.itenzo.controller;

import cn.itenzo.good.service.DemoService;
import cn.itenzo.integral.service.Demo2Service;
import com.alibaba.dubbo.config.annotation.Reference;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by xqenzo@163.com on 2017/5/18 0018.
 */
@Controller
public class TestController {

    private static final Logger logger = LoggerFactory.getLogger(TestController.class);

    /*@Reference(version = "1.0.0")
    private DemoService demoService;

    @Reference
    private Demo2Service demoService2;*/

    /*@ResponseBody
    @RequestMapping(value = "test" )
    public String hello(){
        String seashell1 = demoService.sayhello("hello world");
        logger.info(seashell1);
        return seashell1;
    }

    @ResponseBody
    @RequestMapping(value = "test2")
    public String hello2(){
        return demoService2.sayhello("hello world");
    }*/
}
